using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;

namespace WindowsGame1
{
    public static class TileEngine
    {
        static int tileWidth = 64;
        static int tileHeight = 64;
        static int viewPortWidth = 1024;
        static int viewPortHeight = 768;

        public static int TileWidth
        {
            get { return tileWidth; }
        }
        public static int TileHeight
        {
            get { return tileHeight; }
        }
        public static Vector2 ViewPortVector
        {
            get
            {
                return new Vector2(viewPortWidth + tileWidth,
                viewPortHeight + tileHeight);
            }
        }
        public static int ViewPortWidth
        {
            get { return viewPortWidth; }
        }
        public static int ViewPortHeight
        {
            get { return viewPortHeight; }
        }

        public static Point VectorToCell(Vector2 position)
        {
            return new Point(
            (int)position.X / tileWidth,
            (int)position.Y / tileHeight);
        }
    }
}